package com.wanmait.gohome.pojo;

import java.io.Serializable;
import java.util.Date;

public class Task implements Serializable {
    /**
	* 表id
	*/
    private Integer id;

    /**
	* 标题
	*/
    private String title;

    /**
	* 虚拟删除
	*/
    private Boolean enable;

    /**
	* 状态
	*/
    private Integer markId;

    /**
	* 发布时间
	*/
    private Date inputTime;

    /**
	* 接收时间
	*/
    private Date acceptTime;

    /**
	* 完成时间
	*/
    private Date finishTime;

    /**
	* 关联用户表id(发任务)
	*/
    private Integer userinfoId;

    /**
	* 关联用户表id(接任务)
	*/
    private Integer vUserinfoId;
    /**
     * 添加userinfo对象
     */
    private Userinfo userinfo;

    /**
     *
     * vuserinfo
     */
    private Userinfo vuserinfo;


    /**
     *任务完成审核状态
     *
     */
    private Integer vEnable;

    /**
     * 驳回理由
     *
     */
    private String reason;
    /**
     *申请完成提交理由
     *
     */
    private String finishReason;


    public Integer getvEnable() {
        return vEnable;
    }

    public void setvEnable(Integer vEnable) {
        this.vEnable = vEnable;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getFinishReason() {
        return finishReason;
    }

    public void setFinishReason(String finishReason) {
        this.finishReason = finishReason;
    }

    public Userinfo getVuserinfo() {
        return vuserinfo;
    }

    public void setVuserinfo(Userinfo vuserinfo) {
        this.vuserinfo = vuserinfo;
    }

    public Userinfo getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(Userinfo userinfo) {
        this.userinfo = userinfo;
    }


    /**
     * 索引图片
     */
    private String pic;

    /**
     *浏览数
     */
    private Integer browse;

    /**
     * 评论数
     */
    private Integer comments;

    public Integer getBrowse() {
        return browse;
    }

    public void setBrowse(Integer browse) {
        this.browse = browse;
    }

    public Integer getComments() {
        return comments;
    }

    public void setComments(Integer comments) {
        this.comments = comments;
    }

    /**
     * 任务内容
     */
    private String info;

    private Mark mark;

    public Mark getMark() {
        return mark;
    }

    public void setMark(Mark mark) {
        this.mark = mark;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getMarkId() {
        return markId;
    }

    public void setMarkId(Integer markId) {
        this.markId = markId;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Integer getUserinfoId() {
        return userinfoId;
    }

    public void setUserinfoId(Integer userinfoId) {
        this.userinfoId = userinfoId;
    }

    public Integer getvUserinfoId() {
        return vUserinfoId;
    }

    public void setvUserinfoId(Integer vUserinfoId) {
        this.vUserinfoId = vUserinfoId;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", enable=").append(enable);
        sb.append(", markId=").append(markId);
        sb.append(", inputTime=").append(inputTime);
        sb.append(", acceptTime=").append(acceptTime);
        sb.append(", finishTime=").append(finishTime);
        sb.append(", userinfoId=").append(userinfoId);
        sb.append(", vUserinfoId=").append(vUserinfoId);
        sb.append(", pic=").append(pic);
        sb.append(", info=").append(info);
        sb.append(",browse=").append(browse);
        sb.append(",comments=").append(comments);
        sb.append(",vEnable=").append(vEnable);
        sb.append(",reason=").append(reason);
        sb.append(",finishReason=").append(finishReason);
        sb.append("]");
        return sb.toString();
    }
}